﻿import Request from '/vue/utils/request.js';
LayoutMounted = false;
new Promise(function (resolve, reject) {
	let checkAppMounted = function () {
		setTimeout(function () {
			if (LayoutMounted) {
				resolve();
			}
			else {
				checkAppMounted();
			}
		}, 100);
	}
	checkAppMounted();
}).then(function () {
	httpVueLoader.httpRequest = function (url) {
		//使用统一的ajax请求，使得对页面的请求的超时、出错等处理逻辑在同一个地方
		return Request({ url: url, method: "get" });
	};
}, function () { });

import "/vue/site/main.js";
